﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Mvc.Models
{
    [Table("Menu")]
    public class Menu
    {
        public Menu()
        {
            //this.Items = new HashSet<Item>();
        }
        [Key]
        public int MenuId { get; set; }
        [Required(ErrorMessage = "Este campo es requerido")]
        public string nombre { get; set; }

        public string descripcion { get; set; }
        [Required(ErrorMessage = "Este campo es requerido")]
        public string imagen { get; set; }
        public List<Item> Items { get; set; }


    }
}